
/// Global类专门用来存放全局状态
class GlobalConfig {
  factory GlobalConfig() => _getInstance();
  static GlobalConfig get instance => _getInstance();
  static GlobalConfig _instance;

  GlobalConfig._internal() {
    // 初始化
  }
  static GlobalConfig _getInstance() {
    if (_instance == null) {
      _instance = new GlobalConfig._internal();
    }
    return _instance;
  }

/*
  // 定义需要全局存储的数据
  List<CarMessageModel> vehicleHistory = [
    CarMessageModel("后备箱已关闭", "2021-01-28 18:52"),
    CarMessageModel("后备箱已开启", "2021-01-26 01:57"),
    CarMessageModel("座椅加热已开启", "2021-01-15 13:37"),
    CarMessageModel("闪灯鸣笛已开启", "2021-01-10 15:67"),
    CarMessageModel("车辆驶出地理围栏", "2021-01-01 16:37"),
    CarMessageModel("整车已闭锁", "2019-12-30 17:27"),
  ];

  // 体验模式
  bool isExperience = false;
  // 是否绑定车辆
  bool isBindVin = false;*/
}
